
from blinker_signal_test import app
import uuid

# uuid_str = "4316bc05-eee1-4167-ae33-3a4390ccddee"
# ret = uuid.uuid4()
#
#
# print(ret)
# print(type(ret), ret.time)


import redis
# rds = redis.Redis(host="47.76.93.134", port=6379, db=0, password="difyai123456")
# rds = redis.Redis(host="192.168.100.103", port=6379, db=0, password="")
# user_id = "1222"
# sema_key = f"sema:user:{user_id}"
rds1 = redis.Redis.from_url("redis://:@192.168.100.103:6379/0")
rds1.set("name", "alex")
ret = rds1.get("name")

print(ret)


import asyncio

async def coro1():
    print("Coroutine 1 is running...")
    await asyncio.sleep(3)
    print("Coroutine 1 has finished.")

async def coro2():
    print("Coroutine 2 is running...")
    await asyncio.sleep(3)
    print("Coroutine 2 has finished.")

async def coro3():
    print(f"Coroutine 3 is running...")
    await  asyncio.sleep(3)
    print("Coroutine 3 has finished...")

async def main():
    await asyncio.gather(coro1(), coro2(), coro3())
# asyncio.run(main())

